package test.apps.site.model;

import java.util.Map;

import system.pojo.HHNewsarticlePojo;

import junit.framework.TestCase;
import apps.site.model.HHNewsModel;

public class THHCasesModel extends TestCase {

	/**
	 * 取得特定记录的上一条和下一条记录
	 * 
	 * @Title: testLastNextRecord
	 * @Description:
	 * @param
	 * @return void
	 * @throws
	 */
	public void testLastNextRecord() {
		HHNewsModel newsModel = new HHNewsModel(new HHNewsarticlePojo());

		Map last_map = newsModel.getLastRecodeById(2);
		Map next_map = newsModel.getNextRecodeById(2);
		if (null != last_map)
			System.out.println(last_map.get("newsarticle_name"));
		if (null != next_map)
			System.out.println(next_map.get("newsarticle_name"));

	}

}
